import { NOT_LOADED } from "./app.helpers.js"
import { reroute } from '../navigation/reroute.js'

export let apps = []

export const registerApplication = (appName, loadApp, activeWhen, customProps) => {
    const registeration = {
        name: appName,
        loadApp,
        activeWhen,
        customProps,
        status: NOT_LOADED
    }
    apps.push(registeration)
    // 未加载 加载 挂载 卸载
    reroute()
}

